package com.zp.crm.dao.ServeDao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zp.crm.entity.ServeEntity.ServeEntity;

public interface ServeDao {

	int insert(ServeEntity entity);

	int allotUpdate(ServeEntity entity);

	List<ServeEntity> createPage(@Param(value="code")String code,@Param(value="stuts")String stuts, @Param(value="page")int pageIndex, @Param(value="size")int size);

	int createPageCount(@Param(value="code")String code, @Param(value="stuts")String stuts);

	ServeEntity selectById(@Param(value="id")int id);

	int SelectCratePageCount(@Param(value="code")String code, @Param(value="stuts")String stuts, @Param(value="name")String name,@Param(value="gy") String gy,@Param(value="type") String type, @Param(value="onetime")String onetime,
			@Param(value="twotime")String twotime);

	List<ServeEntity> SelectCreatePage(@Param(value="code")String code,@Param(value="stuts") String stuts, @Param(value="page")int pageIndex, @Param(value="size")int size, @Param(value="name")String name, @Param(value="gy")String gy,
			@Param(value="type")String type, @Param(value="onetime")String onetime, @Param(value="twotime")String twotime);

	int ServeStutsById(ServeEntity entity);

	int deleteById(@Param(value="id")int id);

}
